package org.ahuanlien.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Setter@Getter
public class Attendance extends BaseDomain{
    //日期
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date date;
    //员工姓名
    private String username;
    //上班时间
    @JsonFormat(pattern = "HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern = "HH:mm:ss")
    private Date clockIn;
    //下班时间
    @JsonFormat(pattern = "HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern = "HH:mm:ss")
    private Date clockOut;
    //考勤状态
    private Boolean clockStatus;

}